package shiyan3;

public class XiaoMiFactory extends AbstractFactory{
    @Override
    HuaWei createHuaWei(String type) {
        return null;
    }

    @Override
    XiaoMi createXiaoMi(String type) {
        if("phone".equals(type)){
            return new XiaoMiPhone();
        }
        if("pingban".equals(type)){
            return new XiaoMiPingban();
        }
        if("shouhuan".equals(type)){
            return new XiaoMiShouhuan();
        }
        return null;
    }
}
